import json

from config import get_absoulue_pos


def get_data_list(pos):
    up_pos = get_absoulue_pos()
    with open(up_pos+rf'\data\{pos}','r',encoding='utf8') as f:
        datas = json.load(f)
        data_list = []
        for data in datas:
            val = data.values()
            tmp = tuple(val)
            data_list.append(tmp)
        return (data_list)
if __name__ == '__main__':
    emp_data = get_data_list("data.json")
    print(emp_data[0])
    print(type(emp_data))